package com.geyue.controller;

import com.geyue.common.toolbox.result.Res;
import com.geyue.core.model.Focus;
import com.geyue.core.model.Live;
import com.geyue.core.service.FocusService;
import com.geyue.core.service.LiveService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by Lyon on 2017/4/20.
 */
@RestController
@RequestMapping("/api/focus")
public class FocusController {

    @Autowired
    private FocusService focusService;


    /**
     * 查询关注
     * @return
     */
    @RequestMapping(value = "/allLive",method = RequestMethod.GET)
    @ResponseBody
    public Object all(Integer stuId){

        return focusService.queryAll(stuId);
    }


}
